package com.csxy.systemmanager.dto;

import com.csxy.systemmanager.utils.LongJsonDeserializer;
import com.csxy.systemmanager.utils.LongJsonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * 用户以及对应的角色
 */
@Data
@ToString
public class AuthDto implements Serializable {
    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long userId;

    @JsonDeserialize(using = LongJsonDeserializer.class)
    @JsonSerialize(using = LongJsonSerializer.class)
    private Long roleId;

    private String userName;

    private String nickName;

    private String roleName;
}
